<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>

<div class="operate-contant" id="add-dlg">
    <form id="dataForm" method="post" enctype="multipart/form-data">
        <input type="hidden" id="id" name="id"/>
        <input type="hidden" id="nodeCode" name="nodeCode"/>
        <div id="p1" class="easyui-panel" title="中间件基本信息"
             style="width:100%;height:auto;padding:10px;"
             data-options="collapsible:true">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="10%" class="mandatory">所属主机:</td>
                    <td width="40%"><input id="hostCode" name="hostCode" class="width-180 easyui-combobox"
                                            data-options="required:true,panelHeight:'auto',editable:false" /></td>

                </tr>
                <tr>
                    <td width="10%" class="mandatory">所属应用:</td>
                    <td width="40%"><input id="appCode" name="appCode" class="width-180 easyui-combobox"
                                            data-options="required:true,panelHeight:'auto',editable:false" /></td>
                </tr>
                <tr>
                    <td width="10%" class="mandatory">中间件名称:</td>
                    <td width="40%"><input id="nodeNameTemp" name="nodeNameTemp" class="width-180 easyui-textbox"
                    data-options="required:true"/></td>
                </tr>
                <tr>
                    <td width="10%" class="mandatory">中间件状态:</td>
                    <td width="40%">
                        <select id="status" name="status" class="width-180 easyui-combobox"
                                data-options="required:true,panelHeight:'auto',editable:false">
                            <option value="1">启用</option>
                            <option value="0">停用</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td width="10%">描述:</td>
                    <td colspan="3">
                    <textarea id="remark" name="remark" rows="2" class="easyui-validatebox"
                    style="border:1px solid #e3e3e3;border-radius:4px;width:80%;"></textarea>
                    </td>
                </tr>
            </table>
        </div>

        <div id="p2" class="easyui-panel" title="中间件类型"
             style="width:100%;height:auto;padding:10px;"
             data-options="collapsible:true">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="10%" class="mandatory">类型名称:</td>
                    <td width="40%">
                        <select id="nodeTypeTemp" name="nodeTypeTemp" class="width-180 easyui-combobox" data-options="required:true,panelHeight:'auto',editable:false" >
                            <option value="tomcat">tomcat</option>
                            <option value="nginx/openresty">nginx/openresty</option>
                            <option value="apache">apache</option>
                            <option value="http_server">其他http服务</option>
                            <option value="redis">redis</option>
                            <option value="mysql">mysql</option>
                            <option value="oracle">oracle</option>
                            <option value="other">其他</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td width="10%" class="mandatory">协议:</td>
                    <td width="40%">
                        <select id="protocol" name="protocol" class="width-180 easyui-combobox"
                                data-options="required:true,panelHeight:'auto',editable:false,">
                            <option value="http">http</option>
                            <option value="https">https</option>
                            <option value="redis">redis</option>
                            <option value="mysql">mysql</option>
                            <option value="tcp">tcp</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td width="10%" class="mandatory">端口:</td>
                    <td width="40%"><input id="servicePort" name="servicePort" class="width-180 easyui-textbox"
                                           data-options="required:true"/></td>
                </tr>
                <tr name="attr_url">
                    <td width="10%" class="mandatory">URL:</td>
                    <td width="40%"><input vailname="attr_url" id="url" name="url" class="width-180 easyui-textbox"
                                           data-options="required:true"/></td>
                </tr>
                <tr name="attr_db">
                    <td width="10%" class="mandatory">数据库名称:</td>
                    <td width="40%"><input vailname="attr_dbName" id="dbName" name="dbName" class="width-180 easyui-textbox"
                                           data-options="required:true"/></td>
                </tr>
                <tr name="attr_db">
                    <td width="10%" class="mandatory">用户名:</td>
                    <td width="40%"><input vailname="attr_dbUser" id="dbUser" name="dbUser" class="width-180 easyui-textbox"
                                           data-options="required:true"/></td>
                </tr>
                <tr name="attr_db">
                    <td width="10%" class="mandatory">密码:</td>
                    <td width="40%"><input vailname="attr_dbPwd" id="dbPwd" name="dbPwd" class="width-180 easyui-textbox"
                                           type="password" data-options="required:true"/></td>
                </tr>
                <tr name="attr_redis">
                    <td width="10%" class="mandatory">密码:</td>
                    <td width="40%"><input vailname="attr_redis" id="redisPwd" name="redisPwd" class="width-180 easyui-textbox"
                                           type="password" data-options="required:true"/></td>
                </tr>

                <tr id="path" >
                    <td width="10%">部署路径:</td>
                    <td colspan="2">
                        <textarea id="basePath" name="basePath" rows="2" class="easyui-validatebox"
                                  style="border:1px solid #e3e3e3;border-radius:4px;width:95%;" data-options="required:false"></textarea>
                    </td>
                    <td width="10%"><a id="select_pathvalue" href="#" class="easyui-linkbutton"
                                       data-options="iconCls:'icon-search'" onclick="addDialog_getValue(event)">查询</a></td>
                </tr>
            </table>
        </div>
    </form>
</div>





